package com.caiheng.api.service.asset;

import com.caiheng.api.entity.asset.EstateAsset;
import com.caiheng.api.entity.asset.EstateAssetBorrowRecord;
import com.caiheng.api.entity.sys.SysUser;
import com.caiheng.api.entity.wxuser.User;
import com.caiheng.api.service.base.BaseService;

/**
 * 资产借用记录Service接口
 *
 * @author ruoyi
 * @date 2025-01-20
 */
public interface IEstateAssetBorrowRecordService extends BaseService<EstateAssetBorrowRecord> {

    /**
     *  借用移动资产
     * @param asset
     * @return
     */
    int borrow(User user, SysUser sysUser, EstateAsset asset);
    /**
     *  归还操作
     * @param asset
     * @param record
     * @return
     */
    int reback(EstateAsset asset, EstateAssetBorrowRecord record);
}
